Touch up line lengths
authorAlex Crichton <alex@alexcrichton.com>
Wed, 5 Apr 2017 23:35:39 +0000 (16:35 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 5 Apr 2017 23:35:39 +0000 (16:35 -0700)
src/cargo/util/toml.rs

index 157295246c2e93ecc0426e8c05becdc5efa82b63..990a7d856381603fa1a440d744893009f95ca216 100644 (file)
@@ -1383,13 +1383,19 @@ fn normalize(package_root: &Path,
     ret
 }
 
-fn inferred_bin_path(bin: &TomlBinTarget, package_root: &Path, lib: bool, bin_len: usize) -> PathBuf {
-    // we have a lib with multiple bins, so the bins are expected to be located inside src/bin
+fn inferred_bin_path(bin: &TomlBinTarget,
+                     package_root: &Path,
+                     lib: bool,
+                     bin_len: usize) -> PathBuf {
+    // we have a lib with multiple bins, so the bins are expected to be located
+    // inside src/bin
     if lib && bin_len > 1 {
-        return Path::new("src").join("bin").join(&format!("{}.rs", bin.name())).to_path_buf()
+        return Path::new("src").join("bin").join(&format!("{}.rs", bin.name()))
+                    .to_path_buf()
     }
 
-    // we have a lib with one bin, so it's either src/main.rs, src/bin/foo.rs or src/bin/main.rs
+    // we have a lib with one bin, so it's either src/main.rs, src/bin/foo.rs or
+    // src/bin/main.rs
     if lib && bin_len == 1 {
         let path = Path::new("src").join(&format!("main.rs"));
         if package_root.join(&path).exists() {